package zb.fix.entity.message;

import quickfix.FieldNotFound;
import quickfix.Message;
import zb.fix.field.Code;
import zb.fix.field.MsgCn;
import zb.fix.field.MsgEn;
import zb.fix.field.Remark;

public class ZbError extends Message {
	private static final long serialVersionUID = 5363174800101506789L;

	public static final String MSGTYPE = "zbError";

	public ZbError() {
		getHeader().setField(new quickfix.field.MsgType(MSGTYPE));
	}
	
	public int getCode() throws FieldNotFound {
		return getInt(Code.code);
	}

	public void setCode(int code) {
		setField(new Code(code));
	}

	public String getMsgCn() throws FieldNotFound {
		return getString(MsgCn.code);
	}

	public void setMsgCn(String msgCn) {
		setField(new MsgCn(msgCn));
	}

	public String getMsgEn() throws FieldNotFound  {
		return getString(MsgEn.code);
	}

	public void setMsgEn(String msgEn) {
		setField(new MsgEn(msgEn));
	}

	public String getRemark() throws FieldNotFound {
		return getString(Remark.code);
	}

	public void setRemark(String remark) {
		setField(new Remark(remark)); 
	}	

}
